package com.onlygx.dva.web.ui.service;

import com.onlygx.dva.web.ui.entity.BaseUserRole;
import com.onlygx.dva.web.ui.entity.dto.BaseUserRoleSearchDTO;
import com.onlygx.dva.web.ui.entity.vo.BaseUserRoleShowVO;
import com.onlygx.dva.web.ui.mapper.BaseUserRoleMapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import lombok.RequiredArgsConstructor;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
 * <p>
 * 用户-角色 关联表 服务实现类
 * </p>
 *
 * @author GaoXiang
 * @since 2023-08-04
 * @version V1.0
 */
@Service
@RequiredArgsConstructor
public class BaseUserRoleService extends ServiceImpl<BaseUserRoleMapper, BaseUserRole> implements IService<BaseUserRole>{

    final BaseUserRoleMapper baseUserRoleMapper;


    public Page<BaseUserRoleShowVO> pageByParam(Page<BaseUserRoleSearchDTO> page, BaseUserRoleSearchDTO param) {

        return baseUserRoleMapper.pageByParam(page,param);
    }
}
